package com.local.test;

import java.util.*;

public class Student {
	private String name;
	private int age;
	private String address;
	private Date birthday;
	private String gender;

	public Student() {
	}
	public Student(String name, int age) {
		this.name = name;
		this.age = age;
	}

	public Student(String name, int age, String address, Date birthday, String gender) {
		this.name = name;
		this.age = age;
		this.address = address;
		this.birthday = birthday;
		this.gender = gender;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Override public String toString() {
		return "Student{" + "name='" + name + '\'' + ", age=" + age + ", address='" + address + '\'' + ", birthday="
				+ birthday + ", gender='" + gender + '\'' + '}';
	}

	public static void testArg(String param, String... params) {
		System.out.println("测试:\t" + param + "\tparams:" + params.length);
	}

	public static void main(String[] args) {
		testArg("Hello world", "test", "ddd");

		List<Student> result = new ArrayList<>();
		result.add(new Student());
		//		result.sort(result, Comparator.comparing(Student::getName));
		for (int i = 0; i < 4; i++) {
			for (int j = 0; j < 4; j++) {
					if(i==j){
						break;
					}
				System.out.println("test\ti:"+i+"\tj:"+j);
			}
			System.out.println("test\ti:"+i);
		}
	}
}
